// DatSaver.h: interface for the CDatSaver class.
//
//////////////////////////////////////////////////////////////////////
#ifndef DATSAVER_H
#define DATSAVER_H

#include	<wx/textfile.h>
#include	<wx/file.h>
#include	<wx/string.h>
#include	<BCIStructs.h>
#include "Gangia_GUI.h"


#define		MAX_NUMBER_OF_FLAGS		1

class CDatSaver  
{
public:
	void Close();
	void SaveData(SampleStruct *pData,unsigned int Dim, int offset);
	void FileOpen(wxString Filename,wxString Path=_T(""), wxString LogText = _T(""));
	void InstrumentDescriptor(wxString InstrumentName,int SampleFreq,wxString *pCHLabels,int NumberOfChannels);
	CDatSaver();
	virtual ~CDatSaver();
private:
	bool			IsClosed;

	wxFile			BinFile,AlgoFile;
	wxTextFile		LogFile;
	wxFile			DatFile;
	
	wxString		DatFileName,AlgoFileName;
	wxString		BinFileName;
	wxString		LogFileName;		

};

#endif // !defined(AFX_DATSAVER_H__1C1B73B9_C4F0_4EF7_8D24_17A63A8B5498__INCLUDED_)
